package com.shupian.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shupian.domain.ResponseResult;
import com.shupian.domain.dto.AddArticleDto;
import com.shupian.domain.entity.Article;

public interface ArticleService extends IService<Article> {

    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult addArticle(AddArticleDto addArticleDto);

    ResponseResult getList(Integer pageNum, Integer pageSize, String title, String summary);

    ResponseResult getArticleById(Integer id);

    ResponseResult deleteById(Integer id);
}
